package com.wangxinyuchuan.demo.builder;

import javax.swing.*;

/**
 * @author wangxinyuchuan
 * @date 2023/4/16 4:30 PM
 */
public class Main {
    public static void main(String[] args) {
//        TextBuilder textBuilder = new TextBuilder();
//        Director director = new Director(textBuilder);
//        // Director类中进行构建
//        director.construct();
//        System.out.println(textBuilder.getResult());

        FrameBuilder frameBuilder = new FrameBuilder();
        Director director = new Director(frameBuilder);
        director.construct();

        JFrame jFrame = frameBuilder.getResult();
        System.out.println(jFrame);
        jFrame.setVisible(true);


    }
}
